package com.shaw.workrecord.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shaw.workrecord.entity.PageRequest;
import com.shaw.workrecord.entity.PageResponse;
import com.shaw.workrecord.pojo.request.RecordGroupAddRequest;
import com.shaw.workrecord.pojo.request.RecordGroupEditRequest;
import com.shaw.workrecord.pojo.response.RecordGroupResponse;

public interface IRecordGroupService {

    /**
     * 查询分页
     * @param pageRequest 分页请求
     * @return
     */
    PageResponse<RecordGroupResponse> getRecordGroupPage(PageRequest pageRequest);

    /**
     * 新增记录组
     * @param request 请求对象
     * @return
     */
    Boolean addRecordGroup(RecordGroupAddRequest request);

    /**
     * 编辑记录组
     * @param request 请求对象
     * @return
     */
    Boolean editRecordGroup(RecordGroupEditRequest request);

    /**
     * 删除记录组
     * @param id 记录组id
     * @return
     */
    Boolean deleteRecordGroup(Integer id);
}
